@layout("/common/_container.html",{js:["/assets/modular/system/opencard/opencard.js"]}){

<div class="layui-body-header">
    <span style="line-height: 36px;">开卡管理</span>
    <div style="float:right;">
        @if(shiro.hasPermission("/opencard/add")){
        <button id="btnAdd" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/add.svg"/>&nbsp;登记退卡
        </button>
        @}
        <button id="btnExp" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/download.svg"/>&nbsp;导 出
        </button>
    </div>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="cardOrderNo" class="layui-input" type="text" placeholder="订单号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="shopName" class="layui-input" type="text" placeholder="商户名称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="shopAdr" class="layui-input" type="text" placeholder="地址"/>
                            </div>
                            <div class="layui-inline">
                                <input id="createTime" class="layui-input" type="text" readonly="readonly" placeholder="提交时间"/>
                            </div>
                            <div class="layui-inline">
                                <select id="openCardStatus">
                                    <option value="">状态</option>
                                    <option value="1">已申请,待支付</option>
                                    <option value="2">已支付,待确认</option>
                                    <option value="3">已确认,待开卡</option>
                                    <option value="4">已录入,待派单</option>
                                    <option value="5">已派单,待验卡</option>
                                    <option value="6">已开卡</option>
                                    <option value="9">卡片异常</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="opencardTable" lay-filter="opencardTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    @if(shiro.hasPermission("/opencard/save_card")){
    {{#  if(d.statusName =="已确认,待开卡"||d.statusName =="卡片异常"){}}
    <a class=" v" lay-event="card" >录入卡片 </a><div class="vi"></div>
    {{#  } }}
    @}
    @if(shiro.hasPermission("/opencard/opencard_dispatch")){
    {{#  if(d.statusName =="已录入,待派单"){}}
    <a class=" v" lay-event="dispatch" >派单 </a><div class="vi"></div>
    {{#  } }}
    @}
    <a class=" v" lay-event="detail" >详情 </a>
</script>
@}